package com.yj.user.exception;

public class BaseException extends RuntimeException {

    private int code;
    private String message;

    public BaseException() {
        super();
    }

    public BaseException(String message) {
        super(message);
        this.message = message;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public BaseException(ResultCode resultCode){
        this.code = resultCode.getCode();
        this.message =resultCode.getMessage();
    }



}
